package com.yalu.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

@Data
@ColumnWidth(20)
public class BillDetailDataExcel {

    /**
     * 日期
     */
    @ExcelProperty(value = "日期", index = 0)
    private String date;

    /**
     * 进支详情
     */
    @ExcelProperty(value = "进支详情", index = 1)
    private String transactionDetails;

    /**
     * 存款
     */
    @ContentStyle(horizontalAlignment = HorizontalAlignment.RIGHT)
    @ExcelProperty(value = "存款", index = 2)
    private String deposit;

    /**
     * 提款
     */
    @ContentStyle(horizontalAlignment = HorizontalAlignment.RIGHT)
    @ExcelProperty(value = "提款", index = 3)
    private String withdrawal;

    /**
     * 结余
     */
    @ContentStyle(horizontalAlignment = HorizontalAlignment.RIGHT)
    @ExcelProperty(value = "结余", index = 4)
    private String balance;

    /**
     * 序号
     */
    @ExcelProperty(value = "序号", index = 5)
    private String order;

}
